package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-合同台帐表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_contract_book")
@ApiModel(value = "ErpContractBook对象", description = "ERP系统-合同台帐表")
public class ErpContractBook implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("合同来源 1-新建合同 2-历史合同")
    private Integer source;

    @ApiModelProperty("合同公司id")
    private Integer companyId;

    @ApiModelProperty("合同目录ID")
    private Integer catalogId;

    @ApiModelProperty("合同编号")
    private String contractNo;

    @ApiModelProperty("合同名称")
    private String name;

    @ApiModelProperty("（废弃）合同签订对象主体1-客户 2-供应商 3-员工 9-自定义")
    private Integer signSubject;

    @ApiModelProperty("（废弃）对方主体ID")
    private Integer subjectId;

    @ApiModelProperty("（废弃）对方主体名称")
    private String subjectName;

    @ApiModelProperty("（废弃）对方主体联系人姓名")
    private String subjectContactName;

    @ApiModelProperty("（废弃）对方主体联系人电话")
    private String subjectContactPhone;

    @ApiModelProperty("（废弃）对方主体联系地址")
    private String subjectAddress;

    @ApiModelProperty("（废弃）我方主体ID")
    private Integer ourId;

    @ApiModelProperty("（废弃）我方主体名称")
    private String ourName;

    @ApiModelProperty("（废弃）我方主体联系人姓名")
    private String ourContactName;

    @ApiModelProperty("（废弃）我方主体联系人电话")
    private String ourContactPhone;

    @ApiModelProperty("（废弃）我方主体联系地址")
    private String ourAddress;

    @ApiModelProperty("合同主要条款内容")
    private String mainContent;

    @ApiModelProperty("合同签订日期")
    private Date signTime;

    @ApiModelProperty("生效起始日期（废弃）")
    private Date effectStartTime;

    @ApiModelProperty("生效截止日期（废弃）")
    private Date effectEndTime;

    @ApiModelProperty("生效周期")
    private Integer effectCycle;

    @ApiModelProperty("周期单位 1-年 2-月")
    private Integer cycleUnit;

    @ApiModelProperty("扩展字段数据，json格式")
    private String fieldData;

    @ApiModelProperty("合同扫描件")
    private String images;

    @ApiModelProperty("创建人")
    private Integer createUser;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
